package com.example.demo.study.beanLifcycle;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@ComponentScan
public class LifeCycleConfig {

    @Bean(initMethod = "customInit",destroyMethod = "customDestroy")
    public LifeCycleBean getLifeCycleBean()
    {
        return new LifeCycleBean();
    }

    @Bean
    public CustomBeanPostProcessor getProcessor()
    {
        return new CustomBeanPostProcessor();
    }
}
